package cn.iocoder.yudao.module.diy.controller.admin.route.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 装修自定义路由新增/修改 Request VO")
@Data
public class RouteSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "32095")
    private Long id;

    @Schema(description = "插件id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30463")
    @NotNull(message = "插件id不能为空")
    private Long addonId;

    @Schema(description = "页面名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "页面名称不能为空")
    private String title;

    @Schema(description = "页面标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "页面标识不能为空")
    private String routeName;

    @Schema(description = "页面路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "页面路径不能为空")
    private String page;

    @Schema(description = "分享内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分享内容不能为空")
    private String share;

    @Schema(description = "是否支持分享", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否支持分享不能为空")
    private Integer isShare;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}